<?php
	if(isset($_GET['id'])){
		include('config.php');
		
		$id = addslashes($_GET['id']);
		
		$query = 'UPDATE USERS u SET u.active = 1 WHERE u.user_id = ' . $id;
		mysql_query($query);
		
		mysql_close($mysql_handle);
		
		header('Location: index.php?page=active');
	}else{
		header('Location: index.php');
	}
?>